<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>数据字典-大正</title>
</head>

<body>
	<span
		style="font-weight: bold; color:#F93; aligh: center; font-size: 20px">
		<s:if test='#request.usertype == "1"'> 供应商档案-修改 </s:if> <s:else>客户档案-修改</s:else>
	</span>

	<s:if test='#request.operation == "new"'>
		<s:form action="clientinfoaction?action=add&usertype=%{#request.usertype}">
			<s:hidden name="type" value="%{#request.usertype}"></s:hidden>
			<s:textfield name="id" label='编号' readOnly="true" value="系统自动生成"></s:textfield>
			<s:textfield name="name" label='名称'></s:textfield>
			<s:textarea name="address" label="地址" cols="40" rows="10" />
			<s:textfield name="postcode" label='邮编'></s:textfield>
			<s:textfield name="phone" label='电话'></s:textfield>
			<s:textfield name="fax" label='传真'></s:textfield>
			<s:textfield name="contact" label='联系人'></s:textfield>
			<s:textfield name="homepage" label='主页'></s:textfield>
			<s:textfield name="email" label='邮箱'></s:textfield>
			<s:textfield name="bank" label='银行'></s:textfield>
			<s:textfield name="acount" label='银行账号'></s:textfield>
			<s:textarea name="note" label="备注" cols="40" rows="10" />
			<s:submit value="提交"></s:submit>
		</s:form>
	</s:if>
	<s:else>
		<s:form action="clientinfoaction?action=mod&usertype=%{#request.usertype}">
			<s:hidden name="type" value="%{#request.cirecord.type}"></s:hidden>
			<s:textfield name="id" label='编号' readOnly="true"
				value="%{#request.cirecord.id}"></s:textfield>
			<s:textfield name="name" label='名称' value="%{#request.cirecord.name}"></s:textfield>
			<s:textarea name="address" label="地址" cols="40" rows="10"
				value="%{#request.cirecord.name}" />
			<s:textfield name="postcode" label='邮编'
				value="%{#request.cirecord.postcode}"></s:textfield>
			<s:textfield name="phone" label='电话'
				value="%{#request.cirecord.phone}"></s:textfield>
			<s:textfield name="fax" label='传真' value="%{#request.cirecord.fax}"></s:textfield>
			<s:textfield name="contact" label='联系人'
				value="%{#request.cirecord.contact}"></s:textfield>
			<s:textfield name="homepage" label='主页'
				value="%{#request.cirecord.homepage}"></s:textfield>
			<s:textfield name="email" label='邮箱'
				value="%{#request.cirecord.email}"></s:textfield>
			<s:textfield name="bank" label='银行' value="%{#request.cirecord.bank}"></s:textfield>
			<s:textfield name="acount" label='银行账号'
				value="%{#request.cirecord.acount}"></s:textfield>
			<s:textarea name="note" label="备注" cols="40" rows="10"
				value="%{#request.cirecord.note}" />
			<s:submit value="提交"></s:submit>
		</s:form>
	</s:else>
</body>
</html>
